package com.beantest;

import org.springframework.stereotype.Service;

@Service // 标识为服务层组件
public class SmsService {
    public void sendSms(String phone, String message) {
        System.out.println("发送短信到 " + phone + "，内容：" + message);
    }
}